<?php /* Smarty version Smarty-3.1.14, created on 2013-07-25 12:28:38
         compiled from "libs\Smarty\templates\editar_usuario.tpl" */ ?>
<?php /*%%SmartyHeaderCode:340051f114ada9ccf7-72757489%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1f2a4080efe1fae3850c6587ff18d3fbb67f3ef5' => 
    array (
      0 => 'libs\\Smarty\\templates\\editar_usuario.tpl',
      1 => 1374755308,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '340051f114ada9ccf7-72757489',
  'function' => 
  array (
  ),
  'cache_lifetime' => 120,
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_51f114adb35758_68227483',
  'variables' => 
  array (
    'titulo' => 0,
    'nome_usu' => 0,
    'login' => 0,
    'perfil' => 0,
    'idusuario' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51f114adb35758_68227483')) {function content_51f114adb35758_68227483($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("test.conf", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars("setup", 'local'); ?>
<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['titulo']->value;?>
<?php $_tmp1=ob_get_clean();?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array('title'=>$_tmp1), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array(), 0);?>


<script type="text/javascript">$(document).ready(function(){$('#edit_usuario').submit(function() {if ($("#nome").val() == "" || $("#nome").val().length < 3){$("span").text("Preencha o campo nome, com mais de 3 caracteres").show();return false;}else if ($("#login").val() == "" || $("#login").val().length < 3){$("span").text("Preencha o campo login, com mais de 3 caracteres").show();return false;}else if ($("#perfil").val() == 0){$("span").text("Selecione um perfil").show();return false;}else{return true;}});});</script>

<div class="container">
	
	<form method='POST' action='usuario.php' class="form-signin" id='edit_usuario'>
	   
	   <fieldset>
	    <legend>Editar Usuário</legend>
	    <label>Nome</label>
	    <input type="text" placeholder="nome do usuário" name='nome' id='nome' value='<?php echo $_smarty_tpl->tpl_vars['nome_usu']->value;?>
'>
	    
	    <label>Login</label>
	    <input type="text" placeholder="login de acesso" name='login' id='login' value='<?php echo $_smarty_tpl->tpl_vars['login']->value;?>
'>
	    
	    <label>Perfil</label>
	    <select name='perfil' id='perfil'>
	    	<option value='<?php echo $_smarty_tpl->tpl_vars['perfil']->value;?>
'><?php echo $_smarty_tpl->tpl_vars['perfil']->value;?>
</option>
			<option value='adm'>Administrador</option>
			<option value='usu'>Usuário</option>
		</select>
	   
	   	<br />
	    <button type="submit" class="btn" value='salvar'>Cadastrar</button>
	    <span style='display: none;' class="alert alert-error"></span> 
	  </fieldset>
	  <input type='hidden' name='idusuario' value='<?php echo $_smarty_tpl->tpl_vars['idusuario']->value;?>
' />
	  <input type='hidden' name='action' value='editUsuario' />
	</form> 
	
</div> <!-- /container -->
    --><?php echo $_smarty_tpl->tpl_vars['idusuario']->value;?>

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 9999, null, array(), 0);?>
<?php }} ?>